import request from "@/utils/request";
import { aesEncryption } from "@/utils/crypto";

class ManagerApi {
  changeLoginPwd({ oldPwd, newPwd1, newPwd2 }) {
    return request.post('/api/mgr/admin/change-pwd', {
      oldPwd: aesEncryption(oldPwd),
      newPwd1: aesEncryption(newPwd1),
      newPwd2: aesEncryption(newPwd2)
    })
  }
}

export const managerApi = new ManagerApi()
